import * as  actionType from '../actions/actionType'

const init ={
    isSubpage:false
 }

export default (state=init,action)=>{
switch(action.type){

case  actionType.IS_SUB_PAGES:
return {
    ...state,
    isSubpage:action.isSubpage
}

    default:
    return state
}
}